<template>
    <div>
        <div class="footer-container">
            <div class="footer">
                <div class="first-line">友情链接:</div>
                <div class="second-line">
                    <a v-for="item in list" :key="item.createTime" :href="item.dictValue">{{ item.dictLabel }}</a>
                </div>
                <div class="spacer-line"></div>
                <div class="third-line">Copyright © 2017-2025 石家庄天亮教育科技有限公司 备案号:冀ICP备17020003号</div>
            </div>
        </div>
    </div>
</template>

<script>
import { getFooterInfo } from '@/api/request'
export default {
    name: 'FooterCom',
    data() {
        return {
            // 友情链接列表
            list:[]
        }
    },
    created() {

        getFooterInfo().then(res => {
            this.list=res.rows

        }).catch(err => {
            console.log(err);
        })
    }
}
</script>

<style lang="less" scoped>
.footer-container {
    background: #0f141a;
    height: 200px;
    .footer {
        width: 1160px;
        margin: 0 auto;

        .first-line {
            padding-top: 20px;
            width: 51%;
            color: #fff;
            font-size: 22px;
            margin: 16px auto;
            line-height: 30px;
        }

        .second-line {
            width: 70%;
            margin: 0 auto;

            >a {
                font-size: 14px;
                color: #999;
                margin-right: 30px;
                padding: 10px;

                &:hover {
                    color: green !important;
                }

                &:visited {
                    color: #999;
                }
            }

        }

        .spacer-line {
            margin: 25px;
            width: 1000px;
            height: 1px;
            border: 1px solid rgb(84, 84, 84);

        }

        .third-line {
            height: 50px;
            line-height: 30px;
            text-align: center;
            color: #777878;
            font-size: 14px;
        }
    }
}
a {
  text-decoration: none;
}
</style>
